package com.gopay.common.domain.cbrmb;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.PrePersist;
import javax.persistence.PreUpdate;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.gopay.common.domain.BaseEntity;

/**
 * 
 * @ClassName: CbRmbBankOrderMessageRel
 * @Description: 报文头信息表
 * @author gd.cui
 * @date 2016年6月29日 下午3:03:09 ww.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "CB_RMB_BANK_ORDER_MESSAGE_REL")
public class CbRmbBankOrderMessageRel extends BaseEntity {

    /**
     * @Fields serialVersionUID :
     */
    private static final long serialVersionUID = 4776510210534881735L;

    @Id
    @SequenceGenerator(name = "CB_RMB_BANK_ORDER_MESSAGE_SEQ", sequenceName = "CB_RMB_BANK_ORDER_MESSAGE_SEQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CB_RMB_BANK_ORDER_MESSAGE_SEQ")
    @Column(name = "ORDER_MESSAGE_ID")
    private int orderMessageId;

    /**
     * 总笔数
     */
    @Column(name = "TOTALCOUNT")
    private int totalcount;

    /**
     * 总金额
     */
    @Column(name = "TOTALAMT")
    private BigDecimal totalamt;

    /**
     * 交易日期，yyyyMMdd
     */
    @Column(name = "TRADEDATE")
    private String tradedate;

    /**
     * 版本号
     */
    @Column(name = "VERSION")
    private String version = "1.0";

    /**
     * 总扣款金额
     */
    @Column(name = "TOTALPAYAMT")
    private BigDecimal totalpayamt;

    /**
     * 总交易手续费
     */
    @Column(name = "TOTALHANDLING")
    private BigDecimal totalhandling;

    /**
     * 总交易电报费
     */
    @Column(name = "TOTALTELEGRAM")
    private BigDecimal totaltelegram;

    /**
     * 报盘文件
     */
    @Column(name = "REQ_XML")
    private String reqXml;

    /**
     * 回盘文件
     */
    @Column(name = "RES_XML")
    private String resXml;

    /**
     * 创建时间
     */
    @Column(name = "CREATE_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;

    /**
     * 最后更新时间
     */
    @Column(name = "LAST_UPDATE_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastUpdateTime;
    

    public int getOrderMessageId() {
        return orderMessageId;
    }

    public void setOrderMessageId(int orderMessageId) {
        this.orderMessageId = orderMessageId;
    }

    public int getTotalcount() {
        return totalcount;
    }

    public void setTotalcount(int totalcount) {
        this.totalcount = totalcount;
    }

    public BigDecimal getTotalamt() {
        return totalamt;
    }

    public void setTotalamt(BigDecimal totalamt) {
        this.totalamt = totalamt;
    }

    public String getTradedate() {
        return tradedate;
    }

    public void setTradedate(String tradedate) {
        this.tradedate = tradedate;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public BigDecimal getTotalpayamt() {
        return totalpayamt;
    }

    public void setTotalpayamt(BigDecimal totalpayamt) {
        this.totalpayamt = totalpayamt;
    }

    public BigDecimal getTotalhandling() {
        return totalhandling;
    }

    public void setTotalhandling(BigDecimal totalhandling) {
        this.totalhandling = totalhandling;
    }

    public BigDecimal getTotaltelegram() {
        return totaltelegram;
    }

    public void setTotaltelegram(BigDecimal totaltelegram) {
        this.totaltelegram = totaltelegram;
    }

    public String getReqXml() {
        return reqXml;
    }

    public void setReqXml(String reqXml) {
        this.reqXml = reqXml;
    }

    public String getResXml() {
        return resXml;
    }

    public void setResXml(String resXml) {
        this.resXml = resXml;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

}
